package ltd.bugs.job.selector;

/**
 * @Auther: zhengzhq
 * @Date: 2018-12-12 17:30
 * @Description: 节点选择器配置模型
 */
public class SelectorConfig {

  // zookeeper连接串
  private String zkConnectString;
  // zookeeper超时时间
  private int zkSessionTimeout = 3000;
  // 任务创建路径，如果有多个任务，需要确认唯一
  private String jobPath;
  // 缓存持续时间
  private long cacheDuration;

  public String getZkConnectString() {
    return zkConnectString;
  }

  public void setZkConnectString(String zkConnectString) {
    this.zkConnectString = zkConnectString;
  }

  public int getZkSessionTimeout() {
    return zkSessionTimeout;
  }

  public void setZkSessionTimeout(int zkSessionTimeout) {
    this.zkSessionTimeout = zkSessionTimeout;
  }

  public String getJobPath() {
    return jobPath;
  }

  public void setJobPath(String jobPath) {
    this.jobPath = jobPath;
  }

  public long getCacheDuration() {
    return cacheDuration;
  }

  public void setCacheDuration(long cacheDuration) {
    this.cacheDuration = cacheDuration;
  }
}
